﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace YF_Music.Core.Services
{
  public interface IHttpService
  {
    Task<string?> SendJsonRequestAsync(string url, string? jsonData = null, HttpMethod? method = null, int timeoutMs = 5000);
    Task<T?> GetJsonAsync<T>(string url, int timeoutMs = 5000);
    Task<string?> DownloadFileAsync(string url, string savePath, int timeoutMs = 10000);
    Task<string?> UploadFileAsync(string url, string filePath, int timeoutMs = 10000);
  }
}
